<template>
  <div>
    <h2>{{store.count }}</h2>
    <button @click="increment">同步+</button>
  </div>
</template>

<script lang='ts' setup>
import useCounterStore from './store/useCounterStore';
const store=useCounterStore()
console.log('store',store.count);
const increment=()=>{
  store.INCREMENT(2)
}

</script>

<style lang='scss' scoped>
</style>